package com.chinasofti.manager.entry;

import com.chinasofti.manager.controller.StudentController;
import com.chinasofti.manager.controller.TeacherController;
import com.chinasofti.manager.domain.Teacher;

import java.util.Scanner;

public class InfoMangerEntry {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("************欢迎来到基础信息管理************");
        System.out.println("请输入您的选择：");
        System.out.println("1.学生管理");
        System.out.println("2.老师管理");
        System.out.println("3.退出");
        String choice = sc.next();
        switch (choice){
            case "1":
                System.out.println("学生管理");
                StudentController studentController = new StudentController();
                studentController.start();
                break;
            case "2":
                System.out.println("老师管理");
                TeacherController TeacherController = new TeacherController();
                TeacherController.start1();
                break;
            case "3":
                System.out.println("感谢使用");
                System.exit(0);
                break;
            default:
                System.out.println("您的输入有误，请重新输入");
                break;
        }

    }
}
